package com.devplatform.pojo.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @TableName user_article_collect
 */
@TableName(value = "user_article_collect")
@Data
public class UserArticleCollect {
    @TableId(type = IdType.ASSIGN_ID)
    private Integer id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    private Long articleId;

    private LocalDateTime createTime;
}